const plugins = [];

// 链式属性访问  cell && cell.pageIndex => cell?.pageIndex
plugins.push('@babel/plugin-proposal-optional-chaining');

// if (process.env.NODE_ENV === 'production') {
//   plugins.push('transform-remove-console'); // 移除console.log()
// }

module.exports = {
  presets: [
    // '@vue/app'
    '@vue/cli-plugin-babel/preset'
  ],
  plugins: plugins
};
